package com.mall.logic.controller.member;

import java.util.List;

import javax.annotation.Resource;

import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.mall.logic.rpc.goods.GoodsRpc;
import com.mall.logic.rpc.member.SysMenuRpc;
import com.mall.logic.rpc.member.UserRpc;
import com.mall.logic.rpc.member.bean.MenuVo;


@RestController
@RequestMapping("/user")
public class UserController {

	
	@Autowired
	private GoodsRpc goodsRpc;
	
	@Autowired
	private UserRpc userRpc;
	
	@Autowired
	private SysMenuRpc sysMenuRpc;
	
	@ApiOperation(value = "test", httpMethod = "POST", notes = "test")
	@RequestMapping(value="test")
	@ResponseBody
	public Object test(){
		List<MenuVo> list = sysMenuRpc.getMenuList();
		return list;
	}
	
	@ApiOperation(value = "test1", httpMethod = "POST", notes = "test1")
	@RequestMapping(value="test1")
	@ResponseBody
	public Object test1(){
		List<MenuVo> list = sysMenuRpc.getMenuList();
		return list;
	}
}
